package user;

import book.Book;
import book.BookList;
import operation.*;
public abstract class User {
    protected String name;
    protected IOPeration[] ioperations;
    public User(String name) {
        this.name = name;
    }
    public abstract int menu();

    BookList bookList = new BookList();
    public void doOperation(int pos) {
        ioperations[pos].work(bookList);
    }
}
